from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker

import xxlibrary_python.config as conf
import xxlibrary_python.model as m

if __name__ == '__main__':
    path = 'sqlite:///{}'.format(conf.SQL_FILE)
    print(path)
    engine = create_engine(path, echo=conf.IS_DEBUG)
    m.init_db(engine)
    se = sessionmaker(engine)()
    u = m.User()
    u.user_name = '186111532a411'
    se.add(u)
    se.commit()
